<div class="menu">
	<div align="right" style="font-weight:bold; font-size:12px; padding-bottom:8px; color:#0858A2;">
		<?php echo $this->Access->getMyRole($this->Access->getMy('group_id')).": ".$this->Access->getMy('nombre_completo');?>
	</div>
	<?php  $this->Form->menu($this->Access->getMy('id'),$this->Access->getMy('group_id'));?>
	
</div>
<div class="groups index">
	<fieldset>
	<legend><?php __('Grupos');?></legend>
	<table cellpadding="0" cellspacing="0" class="tabla_formulario">
	<tr>
			<th><?php echo $this->Paginator->sort('nombre');?></th>
			<th class="actions"></th>
	</tr>
	<?php
	$i = 0;
	foreach ($groups as $group):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $group['Group']['nombre']; ?>&nbsp;</td>
		<td>
			<?php
				echo $this->Html->link($this->Html->image('edit.png', array('alt'=> __('Editar ', true), 'border' => '0')),
												'../groups/edit/'.$group['Group']['id'],array('escape' => false));
				?><span style="padding-left:3px;"></span>
				<?php 			
				echo $this->Html->link($this->Html->image('delete.png', array('alt'=> __(' Eliminar ', true), 'border' => '0')),
												'../groups/delete/'.$group['Group']['id'],array('escape' => false));
				?><span style="padding-left:3px;"></span>				
		</td>	
	</tr>
<?php endforeach; ?>
	</table>
	</fieldset>
	<p class="pagina">
		<?php echo $this->Paginator->counter(array('format' => __('P&aacute;gina %page% de %pages% , Total de registros %count%', true)));?>
	</p>
	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('Anterior', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 	 |
		<?php echo $this->Paginator->next(__('Siguiente', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>